<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
	<title>封条管理及验证系统--邮件模板管理</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<%@ include file="/comm.jsp"%>
<style type="text/css">
<!--
fieldset {
    padding:10px;
    margin:10px;
    width:270px;
    color:#333; 
} 
legend {
    color:#06c;
    font-weight:800; 
} 
	-->
</style>

	<body>
	<s:form name ="formpage" action="template_list" namespace="/">
		<div>
  		<%@ include file="/messages.jsp"%>
			<fieldset>
				<legend>
					查询条件
				</legend>
				<table align="center" width="700" border="0">
					<tr>
						<td align="right">
							语言：
						</td>
						<td>
							<s:select list="#{'':'全部','zh_CN':'中文','en':'英文'}"	 
							 name="selLang"
					  		 value="#request.selLang" 
					  		 id="selLang"
					  		 cssStyle="width:100px" >
							</s:select>
						</td>
						<td>&nbsp;&nbsp;
						<input type="submit" class="button" id="ok" name="ok"
								value=" 查 询 " />
						</td>
						<td></td>
					</tr>
				</table>
			</fieldset>
			</div>
            <table border="0" cellpadding="5" cellspacing="1" class="tb_datalist">
			 <tr align="center" height="28px" class="tr_title">
				<td>
					<b>模板标题</b>
				</td>
				<td>
					<b>语言</b>
				</td>
				<td>
					<b>业务类型</b>
				</td>
				<td>
					<b>最近更新时间</b>
				</td>
				<td>
					<b>更新人</b>
				</td>
			</tr>
			<s:iterator id="sa" value="#request.list">
				<tr class="list_tr_item"
						onMouseOver="javascript:this.className='tr_selected';"
						onMouseOut="javascript:this.className='tr_even';">
					<td>
						<a
							href="<s:url action="template_edit"><s:param name="id"><s:property value="#sa.id"/></s:param></s:url>"><s:property
								value="#sa.title" />
						</a>
					</td>
					<td>
						<s:if test='"zh_CN"==#sa.lang'>
							中文
						</s:if>
						<s:elseif test='"en"==#sa.lang'>
							英文
						</s:elseif>
					</td>
					<td>
						<s:property value="#sa.busiType" />
					</td>
					<td>
						<s:date name="#sa.updateDate" format="yyyy-MM-dd HH:mm"/>	
					</td>
					<td>
						<s:property value="#sa.updateUserid" />
					</td>
				</tr>
			</s:iterator>
		</table>
		<s:property value="#request.allowpage" escape="false" />
		</s:form>
	</body>
</html>
